// Copyright 2007 Google, Inc. All Rights Reserved.

package com.google.jessewilson.codesearch.googlecodesearch;

import com.google.jessewilson.codesearch.api.SearchProvider;
import com.google.jessewilson.codesearch.configuration.SearchProviderConfiguration;
import com.google.jessewilson.codesearch.io.jdom.Externalizer;

import org.jdom.Element;

/**
 * Currently there's no configuration necessary for Google Code Search.
 *
 * @author jessewilson
 */
public class GcsConfiguration implements SearchProviderConfiguration {

  public SearchProvider getSearchProvider() {
    return new GcsSearchProvider();
  }

  public static class MyExternalizer implements Externalizer<GcsConfiguration> {

    public void writeExternal(Element target, GcsConfiguration data) { }

    public GcsConfiguration readExternal(Element source) {
      return new GcsConfiguration();
    }
  }
}
